Personal solutions to hacker rank problems