Implement the chi square test in R(statistic and programming language) by Sandeep Kaur