Coinsquare Interview Question

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