Samsara interview question

general coding assessment using any preferred language