Nitin kumar Interview Question

Design a blackbox function using design logic