see is very easy ques i this type of ques
always take any two adjacent points of the figure
say P AND Q
NOW find their relatine velocity on the line joining them it come v + v cos
since the distance b/w them is d
so time taken is d / v + v cos
for square
= 90