practical codes on hackerrank