Interview questions on hackerrank