Solutions I submitted to a hackerrank challenge