Choose and calculate hackerrank solution. .