Happiest state implementation (assignment 1 problem 5)
Implemented top ten, assignment 1 problem 6