Inspired by this. There is a number, given as either integer, string or array of digits (your choice). Find the base in which the representation of the number will have most "4"s and return that base.
Number Result 624 5 444 10 68 16
- The base returned should not be greater than the input.
- numbers less than or equal to abs(4) should not be considered valid input, so undefined returns are acceptable