Wirex interview question

2sums and SQRT algorythms. Some arhitecture solutions with examples using patterns