Booking.com·Software Engineer·Technical Phone Screen
- Given an integer, you're allowed to swap any two of its digits at most once. Return the largest possible number you can form.
“My first instinct was greedy and I think that's the right call, but I fumbled the implementation for a bit.”