My solution for geeksquiz.com