- Fork this gist.
- Please complete the quick challenge below using Ruby, uploading additional files if necessary.
- Reply back to the email you were sent with the link to your completed gist.
This challenge should take 10-15 minutes to complete.
Write a method that:
- takes an integer as input
- converts the number to binary
- swaps any 1's for A's and swaps any 0's for B's and returns the output
Example: The binary representation of 12345
is 11000000111001
so your method should return AABBBBBBAAABBA