Samsara interview question

Design two (relatively simple) classes