Zoho Interview Question

cubic puzzle