some hackerrank practice code from past