Viral Advertising - HackerRank.
 NOTE:   If you are copying my code then its an advice to you to copy it after downloading it to avoid any kind of compilation error its link is available at the bottom of the source code.             HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly   people on social media.   On the first day, half of those   people (i.e.,  ) like the advertisement and each shares it with   of their friends. At the beginning of the second day,   people receive the advertisement.