Greenphire Interview Question

one short leetcode filtering problem