Artificial Intelligence is the theory and development of computer systems that perform tasks that usually require human intelligence such as hearing, speaking, understanding and planning. In AI, algorithms enrich machines with cognitive functions to enable them to perceive their environment…