Implement a function in Delphi 2010 (or compatible) called GetStringFingerDistance(const s : String) : Integer;
It estimates the distance your fingers would have had to move when typing the string s with a qwerty keyboard. For example, distance for "asdf" would be 3, distance for "ak" would be 7. You can assume the input string is only letters A..Z, numbers and regular special chars such as ()!"#¤% &/. You can skip any letters other than these.
In addition, implement in PHP a function CheckDomain($domain) which checks if the given domain is
2) Has a valid MX record, and
3) Is blacklisted by any DNSBL service providers
The function returns 1 if the given domain is valid, has a valid mx record and is not blacklisted. The function returns -1 if the domain is valid but it does not have an mx record, the function returns -2 if the domain is not valid and the function returns -3 if the domain is blacklisted by DNSBL. The function must contain an array of different DNSBL service providers from which it will randomly select one to use for each call. If the selected DNSBL doesn't seem to work (doesn't give a valid response), then the function must select another.