Given people, how many handshakes will be given by all the people greeting each other?
We can determine this using the formula:
Where is the number of people that will handshake.
ref: solution for https://www.hackerrank.com/challenges/handshake/problem