completed sort challenges from hacker rank