MAQ Software Interview Question

reverse string piecewise, count #7's in 1 to 100, puzzles etc.