Polynomial Kernel Similarity Computation - Coding problem | OneNoughtOne