two-bucket submission!

I've loved solving exercisms so I decided to write a brainteasing one myself!