Smart Interviews Basic Hackerrank Problem Solution