Added solution for AllYourBase. The solution is partial because it only works for the small input