Shield AI Interview Question

A leetcode style coding question