fft runs in o(nlogn) complexity.but it exceeds time limit here when i prorammed in python