A list of names were given in which some were others boss while some of the bosses were subordinate of other bosses themselves. Furthermore, if two people have problem with each other, the only person who can solve the problem is their common boss. The question was to develop an application to find the common boss of some given employees.