Nitin kumar interview question

Design a blackbox function using design logic