My code for Beachmint technical exam.