problem on hackerrank