Added some logic for two digit numbers.
Added some logic for 3 digit numbers including a failing test case.