Coinsquare interview question

write an algorithm psuedo-code that detects if 2 square intersect