Project Euler #173: Using up to one million tiles how many different hollow square laminae can be formed?

Problem Name:
Project Euler #173: Using up to one million tiles how many different hollow square laminae can be formed?
Site:HackerRank
Links:
Tags:
Problem setters: