Myridius Interview Question

coding assessment. Given coding problems