I have used dft in my code .
my code link is
my code is passing only sample test case mentioned in question
https://online.codingblocks.com/player/20942/content/4724/5085
both the test cases are showing run time error plz… help where my code is going wrong.