This was one of the problems that was my team was asked during the Microsoft Coding Challenge at Western University in September.