Write a function Sum that takes two integers and returns their sum.
func Sum(a int, b int) int- Two integers
aandb.
- An integer representing the sum of
aandb.
-10^9 <= a, b <= 10^9
2, 3
5
-5, 10
5
- Fork the repository.
- Clone your fork to your local machine.
- Create a directory named after your GitHub username inside
challenge-1/submissions/. - Copy the
solution-template.gofile into your submission directory. - Implement the
Sumfunction. - Test your solution locally by running the test file.
- Commit and push your code to your fork.
- Create a pull request to submit your solution.
Run the following command in the challenge-1/ directory:
go test -v