Google Interview Question

Sometimes some logic random question you can find online