Solution to question given by bhuwan dai