solution for problem pascals-triangle-ii