I am not able to think how to apply FFT in this or how to code solution for this question
Problem Can anyone help