Hackerrank IsFibo solution