PharmEasy Interview Question

Matrix based question ( leetcode medium )