Computational thinking is a problem-solving approach that involves breaking down complex problems into smaller, more manageable parts and identifying patterns and relationships between different components whereas Green-IoT and Artificial Intelligence (AI) in 6G environment are important approaches for potentializing an effective Computational Thinking solution. AI approaches involve developing algorithms that can learn from data, make predictions and decisions, and perform complex tasks without explicit programming. When it comes to Green-IoT, both computational thinking and Artificial Intelligence can be used to analyze and interpret the massive amounts of data generated by connected devices using 6G communication networks. This can lead to more intelligent and efficient use of resources, as well as improved automation of various processes. The combination of Green-IoT, AI and 6G Technologies in computational thinking has the potential to transform various industries and improve the quality of life for individuals is expected to lead to new applications and services that are more intelligent, efficient, and personalized. However, it is important to consider the ethical implications of using these technologies and to ensure that they are used in a responsible and transparent manner. This research presents a review on computational thinking, particularly, we first give an overview of essential parameters through Green-IoT enabled sensor technologies under 5G, 6G environment and Artificial Intelligence. We then present a basic architecture for IoT and AI based computational thinking system considering key requirements to potentialize social applications discussing their strengths and weaknesses in the context of framework for community services. Finally, we explored various security threats for Artificial Intelligence based architecture and their solutions with a comprehensive methodology to design robust and resilient computational thinking services system needed in the context of social networking and related issues.