Solution for Fair And Square