Given an integer n, return 'A' if n is divisible by 7, 'B' if divisible by 5, 'A B' if divisible by both 7 and 5, or an empty string otherwise. Avoid a standard cascade of chained if-else conditions.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.