Solution to the Evernote Coding challenge that was held on Hackerrank