Samsara Interview Question

general coding assessment using any preferred language