Walmart Interview Question

Leetcode- security badge in and out algo